package com.alisls.shequtao.service.goods.service;

import com.alisls.shequtao.common.model.result.PageResult;
import com.alisls.shequtao.common.service.BaseService;
import com.alisls.shequtao.service.goods.dto.SpuDTO;
import com.alisls.shequtao.service.goods.entity.SpuDO;
import com.alisls.shequtao.service.goods.query.SpuPageQuery;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * SpuService
 *
 * @author Ke Wang
 */
public interface SpuService extends IService<SpuDO>, BaseService<SpuDO, SpuDTO> {

    SpuDTO getSpuById(Long id);

    PageResult<SpuDTO> getSpuByPage(SpuPageQuery spuPageQuery);

    SpuDTO saveSpuAndSpuDetail(SpuDTO spuDTO);
}
